<?php
// +----------------------------------------------------------------------
// | 小牛Admin
// +----------------------------------------------------------------------
// | Website: www.xnadmin.cn
// +----------------------------------------------------------------------
// | Author: dav <85168163@qq.com>
// +----------------------------------------------------------------------

namespace app\common\model;

use think\Model;

class ArticleModel extends Model
{
    protected $name = 'article';

    public function class()
    {
        return $this->belongsTo(ArticleClassModel::class, 'cid', 'id')->bind(['class_name'=>'name']);
    }
}